<template>
    <u-form-grid :data="formGrid"></u-form-grid>
</template>

<script>
    import values from '../../utils/values'

    export default {
        name: 'SettlementDetail',
        data () {
            return {
                formGrid: {
                    options: {
                        version: 'v2',
                        url: {
                            page: "/settlementDetail/page",
                            save: "/settlementDetail/save",
                            delete: "/settlementDetail/delete",
                        }
                    },
                    tips: {title: "SettlementDetail", content: "SettlementDetail"},

                    form: {
                        modal: {
                            title: "SettlementDetail"
                        },
                        columns: [
                                        {label: "STATUS_SUCCESS", type: "text", name: "STATUS_SUCCESS", required: true},
                                        {label: "STATUS_FAIL", type: "text", name: "STATUS_FAIL", required: true},
                                        {label: "id", type: "text", name: "id", required: true},
                                        {label: "settleDate", type: "text", name: "settleDate", required: true},
                                        {label: "orderNo", type: "text", name: "orderNo", required: true},
                                        {label: "orderPrice", type: "text", name: "orderPrice", required: true},
                                        {label: "settlementAmount", type: "text", name: "settlementAmount", required: true},
                                        {label: "fee", type: "text", name: "fee", required: true},
                                        {label: "status", type: "text", name: "status", required: true},
                                        {label: "errorMsg", type: "text", name: "errorMsg", required: true},
                                        {label: "batchNo", type: "text", name: "batchNo", required: true},
                                        {label: "transNo", type: "text", name: "transNo", required: true},
                                        {label: "transType", type: "text", name: "transType", required: true},
                                        {label: "price", type: "text", name: "price", required: true},
                                        {label: "externalRefNumber", type: "text", name: "externalRefNumber", required: true},
                                        {label: "remark", type: "text", name: "remark", required: true},

                        ]
                    },
                    table: {
                        operation: {
                            primaryKey: "id",
                        },
                        columns: [
                                                        { title: 'STATUS_SUCCESS', key: 'STATUS_SUCCESS' },
                                                        { title: 'STATUS_FAIL', key: 'STATUS_FAIL' },
                                                        { title: 'id', key: 'id' },
                                                        { title: 'settleDate', key: 'settleDate' },
                                                        { title: 'orderNo', key: 'orderNo' },
                                                        { title: 'orderPrice', key: 'orderPrice' },
                                                        { title: 'settlementAmount', key: 'settlementAmount' },
                                                        { title: 'fee', key: 'fee' },
                                                        { title: 'status', key: 'status' },
                                                        { title: 'errorMsg', key: 'errorMsg' },
                                                        { title: 'batchNo', key: 'batchNo' },
                                                        { title: 'transNo', key: 'transNo' },
                                                        { title: 'transType', key: 'transType' },
                                                        { title: 'price', key: 'price' },
                                                        { title: 'externalRefNumber', key: 'externalRefNumber' },
                                                        { title: 'remark', key: 'remark' },
                                                    ]
                    }
                }
            }
        },
        methods: {

        }
    }
</script>
